package com.kingyea.mobilepolice.apimanage.log.bean;

import java.io.Serializable;
import java.util.Date;

/**
 * todo 该对象 服务实现类 被Send2Queue所注解，所以在，如果外网Controller执行InvokLog插入，内网再次InvokLog插入将会被同步到外网
 * todo 是否需要加一个调用标识符，当请求到来就给他分配一个，但是如果该值存在就不用重新分配，视为不用做记录
 *
 * @author Mr.Lin
 * @version v1.0.0
 * @description InvokLog 实体类
 * 接口调用日志
 * @date Created in 2018-03-11 17:10:41
 */
public class InvokLog implements Serializable {

    /**
     * id
     */
    private Long id;
    /**
     * 请求者ID
     */
    private Integer requesterId;
    /**
     * 请求方标识
     */
    private String requesterSerialNo;
    /**
     * 请求方名称
     */
    private String requester;
    /**
     * 请求方单位名称，如果该调用不是由用户触发的，可记录为空
     */
    private String organization;
    /**
     * 请求方单位机构代码，如果该调用不是由用户触发的，可记录为空
     */
    private String organizationId;
    /**
     * 请求条件，如：{"name":"张三"}
     */
    private String invokCondition;
    /**
     * 接口ID
     */
    private Integer serviceId;
    /**
     * 接口服务标识
     */
    private String serviceSerialNo;
    /**
     * 接口名称
     */
    private String serviceName;
    /**
     * 接口调用的结果状态，包括成功/失败，1：成功；0：失败
     */
    private String resultStatus;
    /**
     * 结果码
     */
    private String resultCode;
    /**
     * 处理时间
     */
    private Long processTime;
    /**
     * 调用时间
     */
    private Date invokTime;
    /**
     * 终端标识
     */
    private String terminalId;
    /**
     * 系统标识
     */
    private String regId;
    /**
     * 如果不是用户触发的记录为空
     */
    private String userId;
    /**
     * 如果不是用户触发的记录为空
     */
    private String userName;

    public String getRegId() {
        return regId;
    }

    public void setRegId(String regId) {
        this.regId = regId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getRequesterId() {
        return this.requesterId;
    }

    public void setRequesterId(Integer requesterId) {
        this.requesterId = requesterId;
    }

    public String getRequesterSerialNo() {
        return this.requesterSerialNo;
    }

    public void setRequesterSerialNo(String requesterSerialNo) {
        this.requesterSerialNo = requesterSerialNo;
    }

    public String getRequester() {
        return this.requester;
    }

    public void setRequester(String requester) {
        this.requester = requester;
    }

    public String getOrganization() {
        return this.organization;
    }

    public void setOrganization(String organization) {
        this.organization = organization;
    }

    public String getOrganizationId() {
        return this.organizationId;
    }

    public void setOrganizationId(String organizationId) {
        this.organizationId = organizationId;
    }

    public String getInvokCondition() {
        return this.invokCondition;
    }

    public void setInvokCondition(String invokCondition) {
        this.invokCondition = invokCondition;
    }

    public Integer getServiceId() {
        return this.serviceId;
    }

    public void setServiceId(Integer serviceId) {
        this.serviceId = serviceId;
    }

    public String getServiceSerialNo() {
        return this.serviceSerialNo;
    }

    public void setServiceSerialNo(String serviceSerialNo) {
        this.serviceSerialNo = serviceSerialNo;
    }

    public String getServiceName() {
        return this.serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    public String getResultStatus() {
        return this.resultStatus;
    }

    public void setResultStatus(String resultStatus) {
        this.resultStatus = resultStatus;
    }

    public String getResultCode() {
        return this.resultCode;
    }

    public void setResultCode(String resultCode) {
        this.resultCode = resultCode;
    }

    public Long getProcessTime() {
        return this.processTime;
    }

    public void setProcessTime(Long processTime) {
        this.processTime = processTime;
    }

    public Date getInvokTime() {
        return this.invokTime;
    }

    public void setInvokTime(Date invokTime) {
        this.invokTime = invokTime;
    }

    public String getTerminalId() {
        return this.terminalId;
    }

    public void setTerminalId(String terminalId) {
        this.terminalId = terminalId;
    }


}
